const Koa = require('koa')
const cors = require('@koa/cors')
const app = new Koa()
const router = require('./src/api/sellInfo')

const port = 6600

module.exports = {
  // baseUrl: process.env.NODE_ENV === 'production' ?
  //   '/ele/' :
  //   '/'
  // ,
  assetsDir: './static',
  indexPath: './index.html',
  devServer: {
    port
  }
}

app
  .use(cors())
  .use(router.routes())
  .use(router.allowedMethods())
  
app.listen(port)
